package com.quanxiaoha.weblog.common.domain.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.quanxiaoha.weblog.common.domain.entity.Article;
import com.quanxiaoha.weblog.common.domain.vo.ArticleVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ArticleMapper extends BaseMapper<Article> {


    // XML 方式（复杂 SQL 推荐）[1,5](@ref)
    Page<ArticleVo> articlePage(Page<ArticleVo> page, @Param("categoryIds") List<Integer> categoryIds,@Param("title") String title);
}
